package com.goddess.yeecolor.view;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.LinearLayout;

import com.goddess.yeecolor.R;
import com.goddess.yeecolor.activity.MyAppClient;

/**
 *进度条
 */
public class dialog_progress extends Dialog{

    private LinearLayout linearLayout;

    private static dialog_progress dialogProgress;
    public static dialog_progress getInstence(){

        if (dialogProgress==null){
            synchronized (dialog_progress.class){
                dialogProgress=new dialog_progress(MyAppClient.getInstance());
            }
        }
        return dialogProgress;
    }
    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_progress);
        linearLayout= (LinearLayout) findViewById(R.id.progress);
//        linearLayout.getBackground().setAlpha(50);
    }

    public dialog_progress(Context context) {
        super(context);
    }

    public dialog_progress(Context context, int themeResId) {
        super(context, themeResId);
    }

    protected dialog_progress(Context context, boolean cancelable, OnCancelListener cancelListener) {
        super(context, cancelable, cancelListener);

    }

}
